export const upload = async (url: string, dir_name: string = '') => {
    return await uni.$u.http.upload("Uploadify/upload", {
        filePath: url,
        name: 'file',
        formData: {
            dir_name: dir_name,
        },
    }).then((res: any) => {
        const url = res?.data?.url || '';
        return url
    })
}